package com.jiangjiang.eshop.membership.convert;

import com.jiangjiang.eshop.membership.domain.DeliveryAddressEntity;
import com.jiangjiang.eshop.membership.dto.DeliveryAddressDTO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @ClassName DelieryAddressConvert
 * @Description TODO
 * @Author jhw
 * @Date 2021/7/24 11:04
 * @Version 1.0
 **/
@Mapper(componentModel = "spring")
public interface DeliveryAddressConvert {

    List<DeliveryAddressDTO> convert2DTOList(List<DeliveryAddressEntity> entities);

    DeliveryAddressEntity convertDTO2Entity(DeliveryAddressDTO dto);
}
